<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <base href="<%=basePath%>"/>
</head>
<body>
<center>
    <h1>修改页面</h1>
    <hr>
    <form action="<%=basePath%>userController.do?method=updateUser" method="post">
        <input type="hidden" name="user_idStr" value="${user.user_id }">

        <table>
            <tr>
                <td>姓名：</td>
                <td><input type="text" name="name" value="${user.name }"></td>
            </tr>
            <tr>
                <td>性别：</td>
                <td><input type="text" name="sex" value="${user.sex }"></td>
            </tr>
            <tr>
                <td>地址：</td>
                <td><input type="text" name="address" value="${user.address }"></td>
            </tr>
            <tr>
                <td>电话：</td>
                <td><input type="text" name="tel" value="${user.tel }"></td>
            </tr>
            <tr>
                <td>用户名;</td>
                <td><input type="text" name="uaername" value="${user.uaername }"></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="text" name="password" value="${user.password }"></td>
            </tr>
            <tr>
                <td><input type="submit" value="修改"></td>
                <td><input type="reset" value="重置"></td>
            </tr>

        </table>
    </form>
</center>

</body>
</html>